﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;

namespace Blog.Model.Models
{
    ///<summary>
    ///文章表
    ///</summary>
    [SugarTable("ArticleInfo")]
    public class ArticleInfo
    {
        public ArticleInfo()
        {
        }
        /// <summary>
        /// Desc:主建,自增
        /// Default:
        /// Nullable:False
        /// </summary>

        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int ID { get; set; }


        /// <summary>
        /// Desc:博客标题
        /// Default:
        /// Nullable:False
        /// </summary>

        public string ArticleTitle { get; set; }


        /// <summary>
        /// Desc:文章摘要
        /// Default:
        /// Nullable:True
        /// </summary>

        public string ArticleAbstract { get; set; }


        /// <summary>
        /// Desc:用户账户
        /// Default:
        /// Nullable:False
        /// </summary>

        public string UserAccount { get; set; }


        /// <summary>
        /// Desc:文章创建时间
        /// Default:
        /// Nullable:False
        /// </summary>

        public int ArticleCreateDate { get; set; }


        /// <summary>
        /// Desc:文章内容
        /// Default:
        /// Nullable:False
        /// </summary>

        public string ArticleBody { get; set; }


        /// <summary>
        /// Desc:文章标签,关联文章标签表
        /// Default:
        /// Nullable:True
        /// </summary>

        public int? ArticleLabel { get; set; }


        /// <summary>
        /// Desc:比如文章,点赞,浏览
        /// Default:
        /// Nullable:False
        /// </summary>

        public int ArticleSubsidiary { get; set; }


        /// <summary>
        /// Desc:文章是否发布,默认1发布,0不发布
        /// Default:1
        /// Nullable:False
        /// </summary>

        public int ArticleIsRelease { get; set; }


        /// <summary>
        /// Desc:文章是否删除,默认否0,1为删除
        /// Default:0
        /// Nullable:False
        /// </summary>

        public int ArticleIsDelete { get; set; }


        /// <summary>
        /// Desc:文章ID
        /// Default:
        /// Nullable:False
        /// </summary>

        public string ArticleID { get; set; }


    }
}
